package com.artpri.dao;

import java.util.List;

import com.artpri.model.vo.SimpleGoods;

/**
 * 简易商品Dao 
 * @author ZhangSi
 */
public interface SimpleGoodsDao {

	public List<SimpleGoods> find(String sql, Object... params);
	
	public List<SimpleGoods> findByPage(String sql, int pageNo, int pageSize);
	
	public List<SimpleGoods> findByPage(String sql, int pageNo, int pageSize, Object... params);
	
	public SimpleGoods get(Integer goodsNum);
	
	public List<SimpleGoods> get(List<Integer> goodsNums);
	
	public Integer findCount(String sql);
	
	public SimpleGoods findSimpleGoodsToBuyWhat(int goodsNum);
}
